package com.zfei.gfb.request;
import com.zfei.gfb.util.ObjUtil;
import com.zfei.gfb.bean.Status;
import com.zfei.gfb.bean.StatusException;


/**
 * @author fgh
 */
public class LiveUserRequest  {

// id
private Integer id;
// 用户名
private String name;
// 密码
private String password;
// 手机号码
private String phone;
// 身份证号
private String idcard;
// 状态1:启用 0：禁用
private Integer status;
// 扩展
private String ext;
// createTime
private Long createTime;
// 中文时间
private String cntime;
// updateTime
private Long updateTime;

public void setId(Integer value) {
        this.id = value;
        }

public Integer getId() {
        return this.id;
        }

public void setName(String value) {
        this.name = value;
        }

public String getName() {
        return this.name;
        }

public void setPassword(String value) {
        this.password = value;
        }

public String getPassword() {
        return this.password;
        }

public void setPhone(String value) {
        this.phone = value;
        }

public String getPhone() {
        return this.phone;
        }

public void setIdcard(String value) {
        this.idcard = value;
        }

public String getIdcard() {
        return this.idcard;
        }

public void setStatus(Integer value) {
        this.status = value;
        }

public Integer getStatus() {
        return this.status;
        }

public void setExt(String value) {
        this.ext = value;
        }

public String getExt() {
        return this.ext;
        }

public void setCreateTime(Long value) {
        this.createTime = value;
        }

public Long getCreateTime() {
        return this.createTime;
        }

public void setCntime(String value) {
        this.cntime = value;
        }

public String getCntime() {
        return this.cntime;
        }

public void setUpdateTime(Long value) {
        this.updateTime = value;
        }

public Long getUpdateTime() {
        return this.updateTime;
        }


        public void checkInsertNull() {
                if (ObjUtil.anyNull(name)) {
                        throw new StatusException(Status.INVALID_ARGUMENT);
                }

        }

        public void checkUpdateNull() {
                checkInsertNull();
                if (id == null) {
                        throw new StatusException(Status.INVALID_ARGUMENT);
                }
        }
        }

